.class Lcom/xingbook/ui/a/ak;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field final synthetic a:Lcom/xingbook/ui/a/aj;


# direct methods
.method constructor <init>(Lcom/xingbook/ui/a/aj;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 5

    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    packed-switch v2, :pswitch_data_0

    move v0, v1

    :cond_0
    :goto_0
    return v0

    :pswitch_0
    iget-object v1, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    invoke-static {v1, v2}, Lcom/xingbook/ui/a/aj;->a(Lcom/xingbook/ui/a/aj;F)V

    iget-object v1, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    invoke-static {v1, v2}, Lcom/xingbook/ui/a/aj;->b(Lcom/xingbook/ui/a/aj;F)V

    iget-object v1, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    iget-object v1, v1, Lcom/xingbook/ui/a/aj;->b:Lcom/xingbook/ui/b/a;

    iget-object v2, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/b/a;->setActivityTouchListener(Lcom/xingbook/ui/overclass/a;)V

    goto :goto_0

    :pswitch_1
    iget-object v2, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v3

    float-to-int v3, v3

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawY()F

    move-result v4

    float-to-int v4, v4

    invoke-virtual {v2, v3, v4, v1}, Lcom/xingbook/ui/a/aj;->a(IIZ)V

    goto :goto_0

    :pswitch_2
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v2

    iget-object v3, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    iget v3, v3, Lcom/xingbook/ui/a/aj;->f:I

    int-to-float v3, v3

    cmpl-float v2, v2, v3

    if-lez v2, :cond_1

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v2

    iget-object v3, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    iget v3, v3, Lcom/xingbook/ui/a/aj;->f:I

    iget-object v4, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    iget v4, v4, Lcom/xingbook/ui/a/aj;->i:I

    add-int/2addr v3, v4

    int-to-float v3, v3

    cmpg-float v2, v2, v3

    if-gez v2, :cond_1

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawY()F

    move-result v2

    iget-object v3, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    iget v3, v3, Lcom/xingbook/ui/a/aj;->g:I

    int-to-float v3, v3

    cmpl-float v2, v2, v3

    if-lez v2, :cond_1

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawY()F

    move-result v2

    iget-object v3, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    iget v3, v3, Lcom/xingbook/ui/a/aj;->g:I

    iget-object v4, p0, Lcom/xingbook/ui/a/ak;->a:Lcom/xingbook/ui/a/aj;

    iget v4, v4, Lcom/xingbook/ui/a/aj;->h:I

    add-int/2addr v3, v4

    int-to-float v3, v3

    cmpg-float v2, v2, v3

    if-ltz v2, :cond_0

    :cond_1
    move v0, v1

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
